import { defineStore } from 'pinia';

export const useXXStore = defineStore('xx', {
	state() {},
	getters: {},
	actions: {},
	// 开启数据缓存
	persist: {
		enabled: true,
		strategies: [
			{
				storage: localStorage, // 指定本地缓存的类型
				paths: [], // 指定本地缓存的字段
			},
		],
	},
});
